The WebGLContextAttributes dictionary contains drawing surface attributes and is passed as the second parameter to getContext.
This type represents a collection of object properties and does not have an explicit JavaScript representation.
Properties | |
---|---|
GLboolean | alpha = true |
GLboolean | antialias = true |
GLboolean | depth = true |
GLboolean | failIfMajorPerformanceCaveat = false |
GLboolean | preferLowPowerToHighPerformance = false |
GLboolean | premultipliedAlpha = true |
GLboolean | preserveDrawingBuffer = false |
GLboolean | stencil = false |
Referenced by | |
---|---|
WebGLRenderingContextBase | getContextAttributes() |